<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue中的数据代理</title>
    <script vue="text/javascript" src="js/vue.js"></script>
  
</head>
<body>
    <div id="myApp">
       <h3>游戏列表</h3>
       <div v-if="seen">2017最新发卖</div>
         <ol>
          <li v-for="game in games">{{game.title}} | {{game.price}}元</li>
         </ol>
      </div>

</body>

<script type="text/javascript">
      
    new Vue({
         el: '#myApp',
         data:{
          seen:true,
          games:[
          {title:'勇者斗恶龙',price:400},
          {title:'超级马里奥',price:280},
          {title:'我的世界',price:99},
          ],
         },
       });
 </script>

</html>